import Cookies from 'js-cookie'

const TokenKey = 'admin-authorization'

export function getToken() {
  return localStorage.getItem(TokenKey)
  //return Cookies.get(TokenKey)
}

export function setToken(token) {
  console.log(token)
  localStorage.setItem(TokenKey,token)
}

export function removeToken() {
  localStorage.removeItem(TokenKey)
  //return Cookies.remove(TokenKey)
}
